Optimal. Leaf size=84 \[ b d^3 x+\frac {b d^3 (1+c x)^2}{4 c}+\frac {b d^3 (1+c x)^3}{12 c}+\frac {d^3 (1+c x)^4 \left (a+b \tanh ^{-1}(c x)\right )}{4 c}+\frac {2 b d^3 \log (1-c x)}{c} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 84, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.176, Rules used = {6063, 641, 45}
\begin {gather*} \frac {d^3 (c x+1)^4 \left (a+b \tanh ^{-1}(c x)\right )}{4 c}+\frac {b d^3 (c x+1)^3}{12 c}+\frac {b d^3 (c x+1)^2}{4 c}+\frac {2 b d^3 \log (1-c x)}{c}+b d^3 x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 641
Rule 6063
Rubi steps
\begin {align*} \int (d+c d x)^3 \left (a+b \tanh ^{-1}(c x)\right ) \, dx &=\frac {d^3 (1+c x)^4 \left (a+b \tanh ^{-1}(c x)\right )}{4 c}-\frac {b \int \frac {(d+c d x)^4}{1-c^2 x^2} \, dx}{4 d}\\ &=\frac {d^3 (1+c x)^4 \left (a+b \tanh ^{-1}(c x)\right )}{4 c}-\frac {b \int \frac {(d+c d x)^3}{\frac {1}{d}-\frac {c x}{d}} \, dx}{4 d}\\ &=\frac {d^3 (1+c x)^4 \left (a+b \tanh ^{-1}(c x)\right )}{4 c}-\frac {b \int \left (-4 d^4+\frac {8 d^3}{\frac {1}{d}-\frac {c x}{d}}-2 d^3 (d+c d x)-d^2 (d+c d x)^2\right ) \, dx}{4 d}\\ &=b d^3 x+\frac {b d^3 (1+c x)^2}{4 c}+\frac {b d^3 (1+c x)^3}{12 c}+\frac {d^3 (1+c x)^4 \left (a+b \tanh ^{-1}(c x)\right )}{4 c}+\frac {2 b d^3 \log (1-c x)}{c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 115, normalized size = 1.37 \begin {gather*} \frac {d^3 \left (24 a c x+42 b c x+36 a c^2 x^2+12 b c^2 x^2+24 a c^3 x^3+2 b c^3 x^3+6 a c^4 x^4+6 b c x \left (4+6 c x+4 c^2 x^2+c^3 x^3\right ) \tanh ^{-1}(c x)+45 b \log (1-c x)+3 b \log (1+c x)\right )}{24 c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.15, size = 131, normalized size = 1.56
method | result | size |
derivativedivides | \(\frac {\frac {d^{3} \left (c x +1\right )^{4} a}{4}+\frac {d^{3} b \arctanh \left (c x \right ) c^{4} x^{4}}{4}+d^{3} b \arctanh \left (c x \right ) c^{3} x^{3}+\frac {3 d^{3} b \arctanh \left (c x \right ) c^{2} x^{2}}{2}+b c \,d^{3} x \arctanh \left (c x \right )+\frac {b \,d^{3} \arctanh \left (c x \right )}{4}+\frac {d^{3} b \,c^{3} x^{3}}{12}+\frac {b \,c^{2} d^{3} x^{2}}{2}+\frac {7 b c \,d^{3} x}{4}+2 d^{3} b \ln \left (c x -1\right )}{c}\) | \(131\) |
default | \(\frac {\frac {d^{3} \left (c x +1\right )^{4} a}{4}+\frac {d^{3} b \arctanh \left (c x \right ) c^{4} x^{4}}{4}+d^{3} b \arctanh \left (c x \right ) c^{3} x^{3}+\frac {3 d^{3} b \arctanh \left (c x \right ) c^{2} x^{2}}{2}+b c \,d^{3} x \arctanh \left (c x \right )+\frac {b \,d^{3} \arctanh \left (c x \right )}{4}+\frac {d^{3} b \,c^{3} x^{3}}{12}+\frac {b \,c^{2} d^{3} x^{2}}{2}+\frac {7 b c \,d^{3} x}{4}+2 d^{3} b \ln \left (c x -1\right )}{c}\) | \(131\) |
risch | \(\frac {d^{3} \left (c x +1\right )^{4} b \ln \left (c x +1\right )}{8 c}-\frac {d^{3} c^{3} x^{4} b \ln \left (-c x +1\right )}{8}+\frac {d^{3} c^{3} x^{4} a}{4}-\frac {d^{3} c^{2} x^{3} b \ln \left (-c x +1\right )}{2}+d^{3} c^{2} x^{3} a +\frac {d^{3} c^{2} b \,x^{3}}{12}-\frac {3 d^{3} c b \,x^{2} \ln \left (-c x +1\right )}{4}+\frac {3 d^{3} c a \,x^{2}}{2}+\frac {b c \,d^{3} x^{2}}{2}-\frac {d^{3} b x \ln \left (-c x +1\right )}{2}+d^{3} a x +\frac {7 b \,d^{3} x}{4}-\frac {b \,d^{3} \ln \left (-c x +1\right )}{8 c}+\frac {2 d^{3} b \ln \left (c x -1\right )}{c}\) | \(192\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 219 vs.
\(2 (78) = 156\).
time = 0.26, size = 219, normalized size = 2.61 \begin {gather*} \frac {1}{4} \, a c^{3} d^{3} x^{4} + a c^{2} d^{3} x^{3} + \frac {1}{24} \, {\left (6 \, x^{4} \operatorname {artanh}\left (c x\right ) + c {\left (\frac {2 \, {\left (c^{2} x^{3} + 3 \, x\right )}}{c^{4}} - \frac {3 \, \log \left (c x + 1\right )}{c^{5}} + \frac {3 \, \log \left (c x - 1\right )}{c^{5}}\right )}\right )} b c^{3} d^{3} + \frac {1}{2} \, {\left (2 \, x^{3} \operatorname {artanh}\left (c x\right ) + c {\left (\frac {x^{2}}{c^{2}} + \frac {\log \left (c^{2} x^{2} - 1\right )}{c^{4}}\right )}\right )} b c^{2} d^{3} + \frac {3}{2} \, a c d^{3} x^{2} + \frac {3}{4} \, {\left (2 \, x^{2} \operatorname {artanh}\left (c x\right ) + c {\left (\frac {2 \, x}{c^{2}} - \frac {\log \left (c x + 1\right )}{c^{3}} + \frac {\log \left (c x - 1\right )}{c^{3}}\right )}\right )} b c d^{3} + a d^{3} x + \frac {{\left (2 \, c x \operatorname {artanh}\left (c x\right ) + \log \left (-c^{2} x^{2} + 1\right )\right )} b d^{3}}{2 \, c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 149, normalized size = 1.77 \begin {gather*} \frac {6 \, a c^{4} d^{3} x^{4} + 2 \, {\left (12 \, a + b\right )} c^{3} d^{3} x^{3} + 12 \, {\left (3 \, a + b\right )} c^{2} d^{3} x^{2} + 6 \, {\left (4 \, a + 7 \, b\right )} c d^{3} x + 3 \, b d^{3} \log \left (c x + 1\right ) + 45 \, b d^{3} \log \left (c x - 1\right ) + 3 \, {\left (b c^{4} d^{3} x^{4} + 4 \, b c^{3} d^{3} x^{3} + 6 \, b c^{2} d^{3} x^{2} + 4 \, b c d^{3} x\right )} \log \left (-\frac {c x + 1}{c x - 1}\right )}{24 \, c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 182 vs.
\(2 (73) = 146\).
time = 0.40, size = 182, normalized size = 2.17 \begin {gather*} \begin {cases} \frac {a c^{3} d^{3} x^{4}}{4} + a c^{2} d^{3} x^{3} + \frac {3 a c d^{3} x^{2}}{2} + a d^{3} x + \frac {b c^{3} d^{3} x^{4} \operatorname {atanh}{\left (c x \right )}}{4} + b c^{2} d^{3} x^{3} \operatorname {atanh}{\left (c x \right )} + \frac {b c^{2} d^{3} x^{3}}{12} + \frac {3 b c d^{3} x^{2} \operatorname {atanh}{\left (c x \right )}}{2} + \frac {b c d^{3} x^{2}}{2} + b d^{3} x \operatorname {atanh}{\left (c x \right )} + \frac {7 b d^{3} x}{4} + \frac {2 b d^{3} \log {\left (x - \frac {1}{c} \right )}}{c} + \frac {b d^{3} \operatorname {atanh}{\left (c x \right )}}{4 c} & \text {for}\: c \neq 0 \\a d^{3} x & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 425 vs.
\(2 (78) = 156\).
time = 0.40, size = 425, normalized size = 5.06 \begin {gather*} -\frac {1}{3} \, {\left (\frac {6 \, b d^{3} \log \left (-\frac {c x + 1}{c x - 1} + 1\right )}{c^{2}} - \frac {6 \, b d^{3} \log \left (-\frac {c x + 1}{c x - 1}\right )}{c^{2}} - \frac {6 \, {\left (\frac {4 \, {\left (c x + 1\right )}^{3} b d^{3}}{{\left (c x - 1\right )}^{3}} - \frac {6 \, {\left (c x + 1\right )}^{2} b d^{3}}{{\left (c x - 1\right )}^{2}} + \frac {4 \, {\left (c x + 1\right )} b d^{3}}{c x - 1} - b d^{3}\right )} \log \left (-\frac {c x + 1}{c x - 1}\right )}{\frac {{\left (c x + 1\right )}^{4} c^{2}}{{\left (c x - 1\right )}^{4}} - \frac {4 \, {\left (c x + 1\right )}^{3} c^{2}}{{\left (c x - 1\right )}^{3}} + \frac {6 \, {\left (c x + 1\right )}^{2} c^{2}}{{\left (c x - 1\right )}^{2}} - \frac {4 \, {\left (c x + 1\right )} c^{2}}{c x - 1} + c^{2}} - \frac {\frac {48 \, {\left (c x + 1\right )}^{3} a d^{3}}{{\left (c x - 1\right )}^{3}} - \frac {72 \, {\left (c x + 1\right )}^{2} a d^{3}}{{\left (c x - 1\right )}^{2}} + \frac {48 \, {\left (c x + 1\right )} a d^{3}}{c x - 1} - 12 \, a d^{3} + \frac {18 \, {\left (c x + 1\right )}^{3} b d^{3}}{{\left (c x - 1\right )}^{3}} - \frac {45 \, {\left (c x + 1\right )}^{2} b d^{3}}{{\left (c x - 1\right )}^{2}} + \frac {38 \, {\left (c x + 1\right )} b d^{3}}{c x - 1} - 11 \, b d^{3}}{\frac {{\left (c x + 1\right )}^{4} c^{2}}{{\left (c x - 1\right )}^{4}} - \frac {4 \, {\left (c x + 1\right )}^{3} c^{2}}{{\left (c x - 1\right )}^{3}} + \frac {6 \, {\left (c x + 1\right )}^{2} c^{2}}{{\left (c x - 1\right )}^{2}} - \frac {4 \, {\left (c x + 1\right )} c^{2}}{c x - 1} + c^{2}}\right )} c \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.96, size = 136, normalized size = 1.62 \begin {gather*} \frac {d^3\,\left (12\,a\,x+21\,b\,x+12\,b\,x\,\mathrm {atanh}\left (c\,x\right )\right )}{12}+\frac {c^3\,d^3\,\left (3\,a\,x^4+3\,b\,x^4\,\mathrm {atanh}\left (c\,x\right )\right )}{12}-\frac {d^3\,\left (21\,b\,\mathrm {atanh}\left (c\,x\right )-12\,b\,\ln \left (c^2\,x^2-1\right )\right )}{12\,c}+\frac {c\,d^3\,\left (18\,a\,x^2+6\,b\,x^2+18\,b\,x^2\,\mathrm {atanh}\left (c\,x\right )\right )}{12}+\frac {c^2\,d^3\,\left (12\,a\,x^3+b\,x^3+12\,b\,x^3\,\mathrm {atanh}\left (c\,x\right )\right )}{12} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________